package com.webmall.servlet.product;
/**
 * 产品管理
 */

import com.webmall.entity.CateEntity;
import com.webmall.entity.ProdEntity;
import com.webmall.service.webmall_CateDao;
import com.webmall.service.webmall_ProdDao;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;

@WebServlet("/manageHtml/admin_productSelect")
public class productSelect extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        ArrayList<ProdEntity> prodList = webmall_ProdDao.selectAll();
        request.setAttribute("prodList",prodList);
        request.getRequestDispatcher("/manageHtml/admin_prod.jsp").forward(request,response);
    }
}
